import QtQuick 2.12

Window {
    id:root
    width: 1200
    height: width/9*6
    visible: true
    title: qsTr("HolyFather")
    Column{
        //矩形
        Rectangle {
            width: 200
            height: 200
            color: "red"

            Rectangle {
                x: 100
                y: 100
                width: 100
                height: 100
                color: "blue"

                Rectangle {
                    width: 50
                    height: 50
                    color: "green"
                }
            }
        }
        Item {
            width: 100; height: 100

            Rectangle { width: 50;
                        height: 50;
                        color: "red" }
        }

        Item {
            width: 100; height: 100

            data: [
                Column {
                    Rectangle { width: 50;
                                height: 50;
                                color: "green" }
                    Rectangle { width: 50;
                                height: 50;
                                color: "blue" }
                    //添加子类
                    Rectangle {
                        color: "#272822"
                        width: 320
                        height: 480

                        Rectangle {
                            y: 64
                            width: 256
                            height: 256
                            color: "green"
                        }

                        Rectangle {
                            x: 64
                            y: 100
                            width: 256
                            height: 256
                            color: "blue"
                        }
                    }
                }

            ]

        }
    }
}
